Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <button onclick="openWin()">Create new window</button> <button onclick="moveWinTo()">Move new window</button> <button onclick="moveWinBy()">Move the new window by 75 * 50px</button> <script> var myWindow; function openWin() { myWindow = window.open("", "", "width=250, height=250"); } function moveWinTo() { myWindow.moveTo(150, 150); myWindow.focus(); } function moveWinBy() { myWindow.moveBy(75, 50); myWindow.focus(); } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_moveby_moveto by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:27:58 GMT --> </html>
Result:
Try it Yourself - © w3schools.com